package com.imooc.o2o.web.frontend;

import com.imooc.o2o.dao.AreaDao;
import com.imooc.o2o.service.ShopCategoryService;
import com.imooc.o2o.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.awt.geom.Area;
import java.util.ArrayList;

/**
 * @author yangshucheng
 * @create 2021-05-14 16:39
 */
@Controller
@RequestMapping(value = "/frontend")
public class FrontendController {

    /**
     * 首页路由
     * @return
     */
    @RequestMapping(value = "/index",method = RequestMethod.GET)
    private String index(){
        return "frontend/index";
    }

    /**
     * 店铺列表页路由
     * @return
     */
    @RequestMapping(value = "/shoplist",method = RequestMethod.GET)
    private String showShopList(){ return "frontend/shoplist";}

    /**
     * 店铺详情页路由
     * @return
     */
    @RequestMapping(value = "/shopdetail",method = RequestMethod.GET)
    private String showShopDetail(){return "frontend/shopdetail";}

    /**
     * 商品详情页路由
     * @return
     */
    @RequestMapping(value = "/productdetail",method = RequestMethod.GET)
    private String showProductDetail(){return  "frontend/productdetail";}
}
